package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.RoleBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IRoleMapper extends BaseMapper<RoleBean> {
public List<RoleBean> findByUserId(Integer userId);
public void addList (@Param("roleId") Integer roleId,@Param("gradeArr") Integer[] gradeArr);
public void delUserRoleOne(Integer roleId);
public void delRoleGrades(Integer roleId);

}
